package com.hxzy.shop.order.dto.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author rlj
 * @Date 2021/7/14 13:24
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DrugReq implements Serializable {

    private static final long serialVersionUID = 9147615024491433411L;

    @ApiModelProperty("药品id")
    @NotBlank(message = "药品id不能为空")
    private Long drugId;

    @ApiModelProperty("数量")
    @NotNull(message = "数量不能为空")
    private Integer number;
}
